﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Serialization;

namespace LdtJudge.DataEngine.Model.XMLConfigModel.Dudection
{
    /// <summary>
    /// 人员配置实体信息
    /// </summary>
    [Serializable]
    [XmlRootAttribute("root", IsNullable = false)]
    public class PersonnelConversionModel
    {
        /// <summary>
        /// 案由配置
        /// </summary>
        [XmlElementAttribute("case", IsNullable = false)]
        public List<CaseModel> caseModelList { get; set; }
    }

    public class CaseModel
    {
        /// <summary>
        /// 类型
        /// </summary>
        [XmlAttribute("casetype")]
        public string casetype { get; set; }

        [XmlAttribute("sourcecode")]
        public string sourcecode { get; set; }
        /// <summary>
        /// 数据项集合
        /// </summary>
        [XmlElementAttribute("dataitem", IsNullable = false)]
        public List<DataitemModel> dataitemModelList { get; set; }
    }

    /// <summary>
    /// 数据项
    /// </summary>
    public class DataitemModel
    {
        /// <summary>
        /// 转换类型
        /// </summary>
        [XmlAttribute("type")]
        public string type { get; set; }

        /// <summary>
        /// 数据路径
        /// </summary>
        [XmlAttribute("path")]
        public string path { get; set; }

        /// <summary>
        /// 转换字段名称
        /// </summary>
        [XmlAttribute("tablefieldname")]
        public string tablefieldname { get; set; }

        /// <summary>
        /// 是否转换当事人
        /// </summary>
        [XmlAttribute("AssertorType")]
        public string AssertorType { get; set; }
    }
}
